export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

// 职位数据类型
export interface RoleData {
  id?: number
  createTime?: string
  updateTime?: string
  roleName: string
  remark?: null
}

// 职位列表数据类型
export type RoleDataList = RoleData[]

// 服务器响应的类型
export interface RoleResponseData extends ResponseData {
  data: {
    records: RoleDataList
    total: number
    size: number
    current: number
    orders: []
    optimizeCountSql: boolean
    hitCount: boolean
    countId: null
    maxLimit: null
    searchCount: boolean
    pages: number
  }
}

// 菜单与按钮数据的ts类型
export interface MenuData {
  id?: number
  createTime?: string
  updateTime?: string
  pid?: number
  name: string
  code?: string
  toCode?: string
  type?: number
  status?: null
  level?: number
  children?: MenuDataList
  select: boolean
}
export type MenuDataList = MenuData[]
// 菜单权限与按钮权限数据的ts类型
export interface MenuResponseData extends ResponseData {
  data: MenuDataList
}
